package com.victor.dao;

import org.apache.ibatis.annotations.Mapper;

import com.victor.entity.TravelCollection;
@Mapper
public interface TravelCollectionDao {
	/**
	 * 删除
	 * @param id
	 * @return
	 */
    boolean deleteByPrimaryKey(Integer id);
    /**
     * 添加
     * @param record
     * @return
     */
    boolean insertSelective(TravelCollection record);

    TravelCollection selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TravelCollection record);

    int updateByPrimaryKey(TravelCollection record);
    /**
     * 查询是否收藏游记
     * @param collection
     * @return
     */
	TravelCollection selByUidAndTravelid(TravelCollection collection);
}